netif->stats.tx_packets++;
/* The update_va_mapping() must not fail. */
- if ( unlikely(mcl[0].result != 0) )
- BUG();
+ BUG_ON(mcl[0].result != 0);
/* Check the reassignment error code. */
status = NETIF_RSP_OKAY;
while ( dealloc_cons != dp )
{
/* The update_va_mapping() must not fail. */
- if ( unlikely(mcl[0].result != 0) )
- BUG();
+ BUG_ON(mcl[0].result != 0);
pending_idx = dealloc_ring[MASK_PEND_IDX(dealloc_cons++)];
netif_interface_init();
- if ( (mmap_vstart = allocate_empty_lowmem_region(MAX_PENDING_REQS)) == 0 )
- BUG();
+ mmap_vstart = allocate_empty_lowmem_region(MAX_PENDING_REQS);
+ BUG_ON(mmap_vstart == 0);
for ( i = 0; i < MAX_PENDING_REQS; i++ )
{